package com.smartlbs.enums;

/**
 * 性别枚举 
 *
 *
 */
public enum SettingEnums {
	//1-充值 2-ip集合3-time定时频率
    VOUCHER(1, "voucher"), IP_COLLECTION(2, "ipCollection"),TIME(3,"time"),MAIL(4,"mail");
    
    private Integer value;
    private String memo;
    
    private SettingEnums(Integer value, String memo) {
    	this.value = value;
    	this.memo = memo;
    }
    
    public Integer getValue(){
    	return value;
    }
    
	public String getMemo() {
		return memo;
	}
	
	public static String getMemoByValue(Integer value){
		for(SettingEnums e : SettingEnums.values()){
			if(e.getValue() == value){
				return e.getMemo();
			}
		}
		return "";
	}
}